package iechecs;

public final class Chaine
{

    private String s;

    public Chaine(String s)
    {
        this.s = s;
    }

    public char charAt(Nat n)
    {
        return s.charAt(n.intValue());
    }

    public Nat indexOf(char ch)
    {
        return new Nat(s.indexOf(ch));
    }

    @Override
    public String toString()
    {
        super.toString();
        return s;
    }
}
